﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
//using BTGISWASECO.BusinessEntities;

/// <summary>
/// Summary description for BeChuaEntities
/// </summary>
namespace BTGISWASECO.BusinessEntities
{
    public class BeChuaEntities
    {
        #region khai bao thuoc tinh
        private int _objectID;
        private string _IDMaBeChua;
        private string _IDCapNuoc;
        private string _TenBeChua;
        private string _DiaDiem;
        private int _VatLieu;
        private string _VatLieuText;
        private int _NamXayDung;
        private double _DTKhuDat;
        private double _DTHuuDung;
        private double _CDOngXaDay;
        private double _CDOngXaTran;
        private double _KTNgoVao;
        private double _KTNgoRa;
        private double _DKOngXaTran;
        private double _DKOngXaDay;
        private int _TinhTrang;
        private string _TinhTrangText;
        private int _DonViQuanLy;
        private string _DonViQuanLyText;
        private string _KichThuocBe;
        private string _SoNha;
        private string _MaDuong;
        private string _MaPhuong;
        private string _MaQuan;
        private string _GhiChu;
        private string _MaTramBom;

        public double DKOngXaDay
        {
            get { return _DKOngXaDay; }
            set { _DKOngXaDay = value; }
        }


        public double DKOngXaTran
        {
            get { return _DKOngXaTran; }
            set { _DKOngXaTran = value; }
        }

        public double KTNgoRa
        {
            get { return _KTNgoRa; }
            set { _KTNgoRa = value; }
        }


        public double KTNgoVao
        {
            get { return _KTNgoVao; }
            set { _KTNgoVao = value; }
        }

        public double CDOngXaTran
        {
            get { return _CDOngXaTran; }
            set { _CDOngXaTran = value; }
        }

        public double CDOngXaDay
        {
            get { return _CDOngXaDay; }
            set { _CDOngXaDay = value; }
        }

        public string SoNha
        {
            get { return _SoNha; }
            set { _SoNha = value; }
        }

        public string MaDuong
        {
            get { return _MaDuong; }
            set { _MaDuong = value; }
        }

        public string MaQuan
        {
            get { return _MaQuan; }
            set { _MaQuan = value; }
        }

        public string MaPhuong
        {
            get { return _MaPhuong; }
            set { _MaPhuong = value; }
        }

        public string DonViQuanLyText
        {
            get { return _DonViQuanLyText; }
            set { _DonViQuanLyText = value; }
        }

        public string TinhTrangText
        {
            get { return _TinhTrangText; }
            set { _TinhTrangText = value; }
        }

        public string TenBeChua
        {
            get { return _TenBeChua; }
            set { _TenBeChua = value; }
        }

        public string VatLieuText
        {
            get { return _VatLieuText; }
            set { _VatLieuText = value; }
        }

        public string KichThuocBe
        {
            get { return _KichThuocBe; }
            set { _KichThuocBe = value; }
        }


        public string GhiChu
        {
            get { return _GhiChu; }
            set { _GhiChu = value; }
        }

        public int DonViQuanLy
        {
            get { return _DonViQuanLy; }
            set { _DonViQuanLy = value; }
        }

        public string MaTramBom
        {
            get { return _MaTramBom; }
            set { _MaTramBom = value; }
        }

        public int TinhTrang
        {
            get { return _TinhTrang; }
            set { _TinhTrang = value; }
        }


        public double DTHuuDung
        {
            get { return _DTHuuDung; }
            set { _DTHuuDung = value; }
        }

        public string DiaDiem
        {
            get { return _DiaDiem; }
            set { _DiaDiem = value; }
        }

        public int NamXayDung
        {
            get { return _NamXayDung; }
            set { _NamXayDung = value; }
        }

        public int VatLieu
        {
            get { return _VatLieu; }
            set { _VatLieu = value; }
        }
        
        public int OBJECTID
        {
            get { return _objectID; }
            set { _objectID = value; }
        }

        public string IDMaBeChua
        {
            get { return _IDMaBeChua; }
            set { _IDMaBeChua = value; }
        }

        public string IDCapNuoc
        {
            get { return _IDCapNuoc; }
            set { _IDCapNuoc = value; }
        }

        public double DTKhuDat
        {
            get { return _DTKhuDat; }
            set { _DTKhuDat = value; }
        }

        # endregion khai bao

        #region phuong thuc

        public BeChuaEntities()
        {

        }

        public BeChuaEntities(string IDMaBeChua, string IDCapNuoc, string TenBeChua, string DiaDiem,
                            int VatLieu, int NamXayDung, double DTKhuDat, double DTHuuDung,
                            double CDOngXaDay, double CDOngXaTran, double KTNgoVao, double KTNgoRa,
                            double DKOngXaTran, double DKOngXaDay, int TinhTrang, int DonViQuanLy,
                            string KichThuocBe, string SoNha, string MaDuong, string MaPhuong,
                            string MaQuan, string GhiChu, string MaTramBom)
        {
            this._IDMaBeChua = IDMaBeChua;
            this._IDCapNuoc = IDCapNuoc;
            this._TenBeChua = TenBeChua;
            this._DiaDiem = DiaDiem;
            this._VatLieu = VatLieu;
            this._NamXayDung = NamXayDung;
            this._DTKhuDat = DTKhuDat;
            this._DTHuuDung = DTHuuDung;
            this._CDOngXaDay = CDOngXaDay;
            this._CDOngXaTran = CDOngXaTran;
            this._KTNgoVao = KTNgoVao;
            this._KTNgoRa = KTNgoRa;
            this._DKOngXaTran = DKOngXaTran;
            this._DKOngXaDay = DKOngXaDay;
            this._TinhTrang = TinhTrang;
            this._DonViQuanLy = DonViQuanLy;
            this._KichThuocBe = KichThuocBe;
            this._SoNha = SoNha;
            this._MaDuong = MaDuong;
            this._MaPhuong = MaPhuong;
            this._MaQuan = MaQuan;
            this._MaTramBom = MaTramBom;
            this._GhiChu = GhiChu;
        }
        public BeChuaEntities(int OBJECTID, string IDMaBeChua, string IDCapNuoc, string TenBeChua, string DiaDiem,
                            int VatLieu, int NamXayDung, double DTKhuDat, double DTHuuDung,
                            double CDOngXaDay, double CDOngXaTran, double KTNgoVao, double KTNgoRa,
                            double DKOngXaTran, double DKOngXaDay, int TinhTrang, int DonViQuanLy,
                            string KichThuocBe, string SoNha, string MaDuong, string MaPhuong,
                            string MaQuan, string GhiChu, string MaTramBom)
        {
            this._objectID = OBJECTID;
            this._IDMaBeChua = IDMaBeChua;
            this._IDCapNuoc = IDCapNuoc;
            this._TenBeChua = TenBeChua;
            this._DiaDiem = DiaDiem;
            this._VatLieu = VatLieu;
            this._NamXayDung = NamXayDung;
            this._DTKhuDat = DTKhuDat;
            this._DTHuuDung = DTHuuDung;
            this._CDOngXaDay = CDOngXaDay;
            this._CDOngXaTran = CDOngXaTran;
            this._KTNgoVao = KTNgoVao;
            this._KTNgoRa = KTNgoRa;
            this._DKOngXaTran = DKOngXaTran;
            this._DKOngXaDay = DKOngXaDay;
            this._TinhTrang = TinhTrang;
            this._DonViQuanLy = DonViQuanLy;
            this._KichThuocBe = KichThuocBe;
            this._SoNha = SoNha;
            this._MaDuong = MaDuong;
            this._MaPhuong = MaPhuong;
            this._MaQuan = MaQuan;
            this._MaTramBom = MaTramBom;
            this._GhiChu = GhiChu;
        }

        public BeChuaEntities(DataRow row)
        {
            this._objectID = Convert.ToInt32(row["OBJECTID"]);
            this._IDMaBeChua = row["IDMaBeChua"].ToString();
            this._IDCapNuoc = row["IDCapNuoc"].ToString();
            this._DiaDiem = row["DiaDiem"].ToString();
            this._TenBeChua = row["TenBeChua"].ToString();
            this._VatLieuText = row["VatLieu"].ToString();
            if (row["NamXayDung"].ToString() != "Null")
            this._NamXayDung = Convert.ToInt32(row["NamXayDung"]);
            if (row["DTKhuDat"].ToString() != "Null")
                this._DTKhuDat = Convert.ToInt32(row["DTKhuDat"]);
            if (row["DTHuuDung"].ToString() != "Null")
                this._DTHuuDung = Convert.ToDouble(row["DTHuuDung"]);
            if (row["CDOngXaDay"].ToString() != "Null")
                this._CDOngXaDay = Convert.ToInt32(row["CDOngXaDay"]);
            if (row["CDOngXaTran"].ToString() != "Null")
                this._CDOngXaTran = Convert.ToDouble(row["CDOngXaTran"]);
            if (row["KTNgoVao"].ToString() != "Null")
                this._KTNgoVao = Convert.ToInt32(row["KTNgoVao"]);
            if (row["KTNgoRa"].ToString() != "Null")
                this._KTNgoRa = Convert.ToDouble(row["KTNgoRa"]);
            if (row["DKOngXaTran"].ToString() != "Null")
                this._DKOngXaTran = Convert.ToInt32(row["DKOngXaTran"]);
            if (row["DKOngXaDay"].ToString() != "Null")
                this._DKOngXaDay = Convert.ToDouble(row["DKOngXaDay"]);
            this._TinhTrangText = row["TinhTrang"].ToString();
            this._DonViQuanLyText = row["DonViQuanLy"].ToString();
            this._KichThuocBe = row["KichThuocBe"].ToString();
            this._SoNha = row["SoNha"].ToString();
            this._MaDuong = row["MaDuong"].ToString();
            this._MaPhuong = row["MaPhuong"].ToString();
            this._MaQuan = row["MaQuan"].ToString();
            this._GhiChu = row["GhiChu"].ToString();
            this._MaTramBom = row["MaTramBom"].ToString();

        }

        #endregion phuong thuc
    }
}